package service

import (
	"lottery/models"
	"math/rand"
	"strconv"
)

func MakeBet()([]*models.Bet){
	len:=200
	//en:=1
	betList := make([]*models.Bet, len)
	for i:=0; i<len;i++{
		bet:=models.Bet{
			UserId:int64(rand.Float64()*10000000),
			Amount:int64(rand.Float64()*10000),
			GameType:"ssc",
			Periods:"20180515231",
			Numbers: strconv.Itoa(rand.Intn(9))  +","+strconv.Itoa(rand.Intn(9))+","+strconv.Itoa(rand.Intn(9))+","+strconv.Itoa(rand.Intn(9))+","+strconv.Itoa(rand.Intn(9)),
		}
		betList[i]=&bet
	}
	return betList
}